package com.my12306.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my12306.common.model.vo.PageVo;
import com.my12306.common.util.PageUtils;
import com.my12306.common.util.response.ResponseData;
import com.my12306.train.model.entity.OrderEntity;
import com.my12306.train.model.vo.OrderVo;

import java.util.List;

/**
 * 用户订单
 *
 * @author ËÕÄÁÏ¦
 * @email
 * @date 2020-07-24 20:58:07
 */
public interface OrderService extends IService<OrderEntity> {
    /**
     * 分页查询订单
     *
     * @param pageVo
     * @return
     */
    PageUtils queryOrderPage(PageVo pageVo);

    /**
     * 分页查询的总数
     *
     * @param pageVo
     * @param logicDelete
     * @return
     */
    Integer queryOrderCount(PageVo pageVo, int logicDelete);

    /**
     * 批量删除订单
     *
     * @param orderIds
     * @return
     */
    ResponseData deleteOrderBatchByIds(List<Long> orderIds);

    /**
     * 添加订单
     * @param orderVo
     * @return
     */
    ResponseData saveTicket(OrderVo orderVo);

    /**
     * 用户主页的分页
     * @param pageVo
     * @return
     */
    PageUtils queryUserOrderPage(PageVo pageVo);
}

